/**
 * Coryright 2015-2020 www.eyaomall.cn
 * All rights reserved.
 * @author yiwei
 * @date 2016年9月20日
 */
package com.eyaomall.wxmall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eyaomall.wxmall.dao.MicroPageDao;
import com.eyaomall.wxmall.model.po.MicroPage;
import com.eyaomall.wxmall.service.MicroPageService;
import com.lycheeframework.core.cmp.kit.PageHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;

/**
 * 微页面serviceImpl
 */

@Service
public class MicroPageServiceImpl implements MicroPageService {
	@Autowired
	private MicroPageDao microPageDao;
	
	/**
	 * 新增微页面
	 */
	public int createMicroPage(MicroPage microPage){
		return microPageDao.createMicroPage(microPage);
	}
	
	/**
	 * 复制微页面
	 */
	public int copyMicroPage(MicroPage microPage){
		return microPageDao.copyMicroPage(microPage);
	}
	
	/**
	 * 根据ID查询微页面
	 */
	public MicroPage queryById(Integer id){
		return microPageDao.queryById(id);
	}
	
	/**
	 * 删除微页面
	 */
	public boolean delete(Integer id){
		return microPageDao.delete(id);
	}
	
	/**
	 * 修改微页面
	 */
	public boolean update(MicroPage microPage){
		return microPageDao.update(microPage);
	}
	
	/**
	 * 查询微页面分页
	 */
	public Pages<?> page(MicroPage microPage, PageHTTPObject httpObject) {
		return microPageDao.page(microPage, httpObject);
	}
	
	
}
